<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page  
	errorPage="../include/eproErrorPage.jsp"
	contentType="text/html; charset=windows-874" 
	import=	"com.epro.standard.frontend.util.FileInfoUtil,
            com.epro.standard.frontend.util.ShowData,
            java.util.Vector,
           	com.softplus.carrefour.hd.bltier.entity.RoutePath,
  			com.softplus.carrefour.hd.bltier.admin.RoutePathManage,
 	 		com.softplus.carrefour.hd.bltier.entity.UserLevel,
 	 		 com.softplus.carrefour.hd.bltier.entity.CfhdCaseHead,
  			com.softplus.carrefour.hd.CFHDSystem"
%>
<HTML xmlns:epro>
<%@ taglib uri="/WEB-INF/HeadTag.tld" prefix="head"%>
<%@ taglib uri="/WEB-INF/TextfieldTag.tld" prefix="textfield"%>
<%@ taglib uri="/WEB-INF/ListboxTag.tld" prefix="listbox"%>
<%@ taglib uri="/WEB-INF/CheckboxTag.tld" prefix="CheckboxTag"%>
<head:Head 
	author="Dee" 
	title="Routing Setup : Update"
	import="textfield,listbox,button,checkbox"
	jsFile="../script/imgProp.js,../script/Alert.js,../script/checkValidData.js,../script/lov.js"
	styleFile ="../theme/defaultTheme.css"></head:Head>
<%
	String textfieldWidth   = "280" ;
	String action 			= "update";
	String linkParameter	= "?";
	String update 			= "../servlet/com.softplus.carrefour.hd.frontend.servlet.administration.CFHDAD03"+linkParameter;
	
	
%>
<%	///////del
	
   // Vector dataVector = new Vector();
	//dataVector = routePathManage.getRoutePathByCaseType("P2"); 
	//session.setAttribute("RoutingVector",dataVector);
	//if (true){
	///////del
	String  closeIframe = request.getParameter("closeIframe") == null ? "" : request.getParameter("closeIframe");
 	String uid = request.getParameter("uid")== null?"":request.getParameter("uid");
 	session.setAttribute("uid", uid) ;
	String  caseType = request.getParameter("caseType") == null ? "" : request.getParameter("caseType");
 System.out.println("");
 	if(closeIframe.equals("true"))
 	{
 		out.print("<script>");
 		out.print("dialogArguments.location.href=\"CFHDADMT03.jsp?caseType="+caseType+"&uid="+uid+"\";");
 		out.print("window.close();");
 		out.print("</script>"); 
 	}
	ShowData  showData 	    = new ShowData();
	
	if (request.getParameter("index") != null ){
		int       index         = Integer.parseInt(request.getParameter("index"));
		if(index != 0) index = index-1;
		System.out.println("===========index=========="+index);
        RoutePathManage routePathManage = (RoutePathManage)CFHDSystem.getControlClass("ROUTE_PATH");
   
        Vector    dataVector    = (Vector) session.getAttribute("RoutingVector");
		RoutePath data    		= (RoutePath)dataVector.elementAt(index);
		//RoutePath data    		= (RoutePath)dataVector.elementAt(0);
		boolean def = routePathManage.getDefaultPath(data);
		//*******From To ******
		String fromUser = UserLevel.getLevelName(data.getComp_id().getFromUserLevel());
		
		//********Period ******
		// list box of Hours or Minutes
		String listboxHours_Data[]    = {"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",};
    	String listboxHours_Label[]   = {"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",};
    	String listboxMinutes_Data[]  = {"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"};
    	String listboxMinutes_Label[] = {"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"};
		
		System.out.println("****************555*******="+data.getUnattendPeriod());
		int indexUnattHours;
		int indexUnattMinutes;
		int indexAutoEsHours;
		int indexEsMinutes;
		//String unattHours   	= showData.CheckNull(Integer.parseInt(data.getUnattendPeriod().substring(0,2))) ;
    	//String unattMinutes 	= showData.CheckNull(Integer.parseInt(data.getUnattendPeriod().substring(2))) ;
    	//String autoEsHours      = showData.CheckNull(Integer.parseInt(data.getAutoEscalatePeriod().substring(0,2))) ;
    	//String autoEsMinutes    	= showData.CheckNull(Integer.parseInt(data.getAutoEscalatePeriod().substring(2))) ;
		//------------------------------------------------------------------------------------------
		String unattTime   	= showData.CheckNull(data.getUnattendPeriod());
		//------------------------------------------------------------------------------------------
String unattHours =unattTime.substring(0,unattTime.length()-2);
System.out.println("unattHours="+unattHours);
if(unattHours.equals("00")){indexUnattHours=1;}
else if(unattHours.equals("01")){indexUnattHours=2;}
else if(unattHours.equals("02")){indexUnattHours=3;}
else if(unattHours.equals("03")){indexUnattHours=4;}
else if(unattHours.equals("04")){indexUnattHours=5;}
else if(unattHours.equals("05")){indexUnattHours=6;}
else if(unattHours.equals("06")){indexUnattHours=7;}
else if(unattHours.equals("07")){indexUnattHours=8;}
else if(unattHours.equals("08")){indexUnattHours=9;}
else if(unattHours.equals("09")){indexUnattHours=10;}
else if(unattHours.equals("10")){indexUnattHours=11;}
else if(unattHours.equals("11")){indexUnattHours=12;}
else if(unattHours.equals("12")){indexUnattHours=13;}
else if(unattHours.equals("13")){indexUnattHours=14;}
else if(unattHours.equals("14")){indexUnattHours=15;}
else if(unattHours.equals("15")){indexUnattHours=16;}
else if(unattHours.equals("16")){indexUnattHours=17;}
else if(unattHours.equals("17")){indexUnattHours=18;}
else if(unattHours.equals("18")){indexUnattHours=19;}
else if(unattHours.equals("19")){indexUnattHours=20;}
else if(unattHours.equals("20")){indexUnattHours=21;}
else if(unattHours.equals("21")){indexUnattHours=22;}
else if(unattHours.equals("22")){indexUnattHours=23;}
else if(unattHours.equals("23")){indexUnattHours=24;}
else {indexUnattHours=1;}
//------------------------------------------------------------------------------------------
String unattMinutes = unattTime.substring(unattTime.length()-2);
System.out.println("unattMinutes="+unattMinutes);
if(unattMinutes.equals("00")){indexUnattMinutes=1;}
else if(unattMinutes.equals("01")){indexUnattMinutes=2;}
else if(unattMinutes.equals("02")){indexUnattMinutes=3;}
else if(unattMinutes.equals("03")){indexUnattMinutes=4;}
else if(unattMinutes.equals("04")){indexUnattMinutes=5;}
else if(unattMinutes.equals("05")){indexUnattMinutes=6;}
else if(unattMinutes.equals("06")){indexUnattMinutes=7;}
else if(unattMinutes.equals("07")){indexUnattMinutes=8;}
else if(unattMinutes.equals("08")){indexUnattMinutes=9;}
else if(unattMinutes.equals("09")){indexUnattMinutes=10;}
else if(unattMinutes.equals("10")){indexUnattMinutes=11;}
else if(unattMinutes.equals("11")){indexUnattMinutes=12;}
else if(unattMinutes.equals("12")){indexUnattMinutes=13;}
else if(unattMinutes.equals("13")){indexUnattMinutes=14;}
else if(unattMinutes.equals("14")){indexUnattMinutes=15;}
else if(unattMinutes.equals("15")){indexUnattMinutes=16;}
else if(unattMinutes.equals("16")){indexUnattMinutes=17;}
else if(unattMinutes.equals("17")){indexUnattMinutes=18;}
else if(unattMinutes.equals("18")){indexUnattMinutes=19;}
else if(unattMinutes.equals("19")){indexUnattMinutes=20;}
else if(unattMinutes.equals("20")){indexUnattMinutes=21;}
else if(unattMinutes.equals("21")){indexUnattMinutes=22;}
else if(unattMinutes.equals("22")){indexUnattMinutes=23;}
else if(unattMinutes.equals("23")){indexUnattMinutes=24;}
else if(unattMinutes.equals("24")){indexUnattMinutes=25;}
else if(unattMinutes.equals("25")){indexUnattMinutes=26;}
else if(unattMinutes.equals("26")){indexUnattMinutes=27;}
else if(unattMinutes.equals("27")){indexUnattMinutes=28;}
else if(unattMinutes.equals("28")){indexUnattMinutes=29;}
else if(unattMinutes.equals("29")){indexUnattMinutes=30;}
else if(unattMinutes.equals("30")){indexUnattMinutes=31;}
else if(unattMinutes.equals("31")){indexUnattMinutes=32;}
else if(unattMinutes.equals("32")){indexUnattMinutes=33;}
else if(unattMinutes.equals("33")){indexUnattMinutes=34;}
else if(unattMinutes.equals("34")){indexUnattMinutes=35;}
else if(unattMinutes.equals("35")){indexUnattMinutes=36;}
else if(unattMinutes.equals("36")){indexUnattMinutes=37;}
else if(unattMinutes.equals("37")){indexUnattMinutes=38;}
else if(unattMinutes.equals("38")){indexUnattMinutes=39;}
else if(unattMinutes.equals("39")){indexUnattMinutes=40;}
else if(unattMinutes.equals("40")){indexUnattMinutes=41;}
else if(unattMinutes.equals("41")){indexUnattMinutes=42;}
else if(unattMinutes.equals("42")){indexUnattMinutes=43;}
else if(unattMinutes.equals("43")){indexUnattMinutes=44;}
else if(unattMinutes.equals("44")){indexUnattMinutes=45;}
else if(unattMinutes.equals("45")){indexUnattMinutes=46;}
else if(unattMinutes.equals("46")){indexUnattMinutes=47;}
else if(unattMinutes.equals("47")){indexUnattMinutes=48;}
else if(unattMinutes.equals("48")){indexUnattMinutes=49;}
else if(unattMinutes.equals("49")){indexUnattMinutes=50;}
else if(unattMinutes.equals("50")){indexUnattMinutes=51;}
else if(unattMinutes.equals("51")){indexUnattMinutes=52;}
else if(unattMinutes.equals("52")){indexUnattMinutes=53;}
else if(unattMinutes.equals("53")){indexUnattMinutes=54;}
else if(unattMinutes.equals("54")){indexUnattMinutes=55;}
else if(unattMinutes.equals("55")){indexUnattMinutes=56;}
else if(unattMinutes.equals("56")){indexUnattMinutes=57;}
else if(unattMinutes.equals("57")){indexUnattMinutes=58;}
else if(unattMinutes.equals("58")){indexUnattMinutes=59;}
else if(unattMinutes.equals("59")){indexUnattMinutes=60;}
else {indexUnattMinutes=1;}	
//------------------------------------------------------------------------------------------
String autoEsTime = showData.CheckNull(data.getAutoEscalatePeriod());
//------------------------------------------------------------------------------------------
String autoEsHours =autoEsTime.substring(0,autoEsTime.length()-2);

System.out.println("autoEsHours="+autoEsHours);
if(autoEsHours.equals("00")){indexAutoEsHours=1;}
else if(autoEsHours.equals("01")){indexAutoEsHours=2;}
else if(autoEsHours.equals("02")){indexAutoEsHours=3;}
else if(autoEsHours.equals("03")){indexAutoEsHours=4;}
else if(autoEsHours.equals("04")){indexAutoEsHours=5;}
else if(autoEsHours.equals("05")){indexAutoEsHours=6;}   
else if(autoEsHours.equals("06")){indexAutoEsHours=7;}
else if(autoEsHours.equals("07")){indexAutoEsHours=8;}
else if(autoEsHours.equals("08")){indexAutoEsHours=9;}
else if(autoEsHours.equals("09")){indexAutoEsHours=10;}
else if(autoEsHours.equals("10")){indexAutoEsHours=11;}
else if(autoEsHours.equals("11")){indexAutoEsHours=12;}
else if(autoEsHours.equals("12")){indexAutoEsHours=13;}
else if(autoEsHours.equals("13")){indexAutoEsHours=14;}
else if(autoEsHours.equals("14")){indexAutoEsHours=15;}
else if(autoEsHours.equals("15")){indexAutoEsHours=16;}
else if(autoEsHours.equals("16")){indexAutoEsHours=17;}
else if(autoEsHours.equals("17")){indexAutoEsHours=18;}
else if(autoEsHours.equals("18")){indexAutoEsHours=19;}
else if(autoEsHours.equals("19")){indexAutoEsHours=20;}
else if(autoEsHours.equals("20")){indexAutoEsHours=21;}
else if(autoEsHours.equals("21")){indexAutoEsHours=22;}
else if(autoEsHours.equals("22")){indexAutoEsHours=23;}
else if(autoEsHours.equals("23")){indexAutoEsHours=24;}
else {indexAutoEsHours=1;}
//------------------------------------------------------------------------------------------

String autoEsMinutes = autoEsTime.substring(autoEsTime.length()-2);
System.out.println("autoEsMinutes="+autoEsMinutes);
if(autoEsMinutes.equals("00")){indexEsMinutes=1;}
else if(autoEsMinutes.equals("01")){indexEsMinutes=2;}
else if(autoEsMinutes.equals("02")){indexEsMinutes=3;}
else if(autoEsMinutes.equals("03")){indexEsMinutes=4;}
else if(autoEsMinutes.equals("04")){indexEsMinutes=5;}
else if(autoEsMinutes.equals("05")){indexEsMinutes=6;}
else if(autoEsMinutes.equals("06")){indexEsMinutes=7;}
else if(autoEsMinutes.equals("07")){indexEsMinutes=8;}
else if(autoEsMinutes.equals("08")){indexEsMinutes=9;}
else if(autoEsMinutes.equals("09")){indexEsMinutes=10;}
else if(autoEsMinutes.equals("10")){indexEsMinutes=11;}
else if(autoEsMinutes.equals("11")){indexEsMinutes=12;}
else if(autoEsMinutes.equals("12")){indexEsMinutes=13;}
else if(autoEsMinutes.equals("13")){indexEsMinutes=14;}
else if(autoEsMinutes.equals("14")){indexEsMinutes=15;}
else if(autoEsMinutes.equals("15")){indexEsMinutes=16;}
else if(autoEsMinutes.equals("16")){indexEsMinutes=17;}
else if(autoEsMinutes.equals("17")){indexEsMinutes=18;}
else if(autoEsMinutes.equals("18")){indexEsMinutes=19;}
else if(autoEsMinutes.equals("19")){indexEsMinutes=20;}
else if(autoEsMinutes.equals("20")){indexEsMinutes=21;}
else if(autoEsMinutes.equals("21")){indexEsMinutes=22;}
else if(autoEsMinutes.equals("22")){indexEsMinutes=23;}
else if(autoEsMinutes.equals("23")){indexEsMinutes=24;}
else if(autoEsMinutes.equals("24")){indexEsMinutes=25;}
else if(autoEsMinutes.equals("25")){indexEsMinutes=26;}
else if(autoEsMinutes.equals("26")){indexEsMinutes=27;}
else if(autoEsMinutes.equals("27")){indexEsMinutes=28;}
else if(autoEsMinutes.equals("28")){indexEsMinutes=29;}
else if(autoEsMinutes.equals("29")){indexEsMinutes=30;}
else if(autoEsMinutes.equals("30")){indexEsMinutes=31;}
else if(autoEsMinutes.equals("31")){indexEsMinutes=32;}
else if(autoEsMinutes.equals("32")){indexEsMinutes=33;}
else if(autoEsMinutes.equals("33")){indexEsMinutes=34;}
else if(autoEsMinutes.equals("34")){indexEsMinutes=35;}
else if(autoEsMinutes.equals("35")){indexEsMinutes=36;}
else if(autoEsMinutes.equals("36")){indexEsMinutes=37;}
else if(autoEsMinutes.equals("37")){indexEsMinutes=38;}
else if(autoEsMinutes.equals("38")){indexEsMinutes=39;}
else if(autoEsMinutes.equals("39")){indexEsMinutes=40;}
else if(autoEsMinutes.equals("40")){indexEsMinutes=41;}
else if(autoEsMinutes.equals("41")){indexEsMinutes=42;}
else if(autoEsMinutes.equals("42")){indexEsMinutes=43;}
else if(autoEsMinutes.equals("43")){indexEsMinutes=44;}
else if(autoEsMinutes.equals("44")){indexEsMinutes=45;}
else if(autoEsMinutes.equals("45")){indexEsMinutes=46;}
else if(autoEsMinutes.equals("46")){indexEsMinutes=47;}
else if(autoEsMinutes.equals("47")){indexEsMinutes=48;}
else if(autoEsMinutes.equals("48")){indexEsMinutes=49;}
else if(autoEsMinutes.equals("49")){indexEsMinutes=50;}
else if(autoEsMinutes.equals("50")){indexEsMinutes=51;}
else if(autoEsMinutes.equals("51")){indexEsMinutes=52;}
else if(autoEsMinutes.equals("52")){indexEsMinutes=53;}
else if(autoEsMinutes.equals("53")){indexEsMinutes=54;}
else if(autoEsMinutes.equals("54")){indexEsMinutes=55;}
else if(autoEsMinutes.equals("55")){indexEsMinutes=56;}
else if(autoEsMinutes.equals("56")){indexEsMinutes=57;}
else if(autoEsMinutes.equals("57")){indexEsMinutes=58;}
else if(autoEsMinutes.equals("58")){indexEsMinutes=59;}
else if(autoEsMinutes.equals("59")){indexEsMinutes=60;}
else {indexEsMinutes=1;}
		//********Route Direction*****
		String chkEscalate 	= "";
		String chkReturn	= "";
		if(data.getRouteDirection().equals("E"))
		{
			chkEscalate= "checked";
		}else if(data.getRouteDirection().equals("R"))
			  	{
					chkReturn= "checked";
				}
		//*******Default Route*********
		String chkYes 	= "";
		String chkNo	= "";
		System.out.println("data.isDefaultAutoEscalate()===="+data.isDefaultAutoEscalate());
		
		if(data.isDefaultAutoEscalate())
		{
			chkYes= "checked";
		}else{
					chkNo= "checked";
			 }
		//*******Status Route*********
		String chkActive 	= "";
		String chkInactive	= "";
		System.out.println("data.isStatus()===="+data.isStatus());
		
		if(data.isStatus())
		{
			chkActive= "checked";
		}else {
					chkInactive= "checked";
			  }
	//***update by update date
	   	String updateBy         = showData.CheckNull(data.getUpdBy()) ;
    	String updateDate       = showData.CheckNull(data.getUpdDate(), "dd/MM/yyyy") ;
	
%>
<SCRIPT language="javaScript">
function submitForm()
{
	/*var u = frm.unattendedHours.value ;
	u = u.substring(0,1);
	if(u == '-')
		showOWarningDialog("warning", "Unttended Period must be equal to or queater than zero.", "OK");
	else
	{	
		var a = frm.autoEHours.value ;	
		a = a.substring(0,1);
		if(a == '-')
		{	
			showOWarningDialog("warning", "Auto Escalate Period must be equal to or queater than zero.", "OK");
		
		}else
		{*/
			if (showOConfirmDialog("Confirm","Do you want to save?","OK","Cancel") == 1)
			{ 
						if(frm.unattendedHours.value == "") frm.unattendedHours.value = "0";
						if(frm.autoEHours.value == "") frm.autoEHours.value = "0";
						frm.submit();    
			}
		//}
	//}
}
function Exit()
{
	if (showOConfirmDialog("Confirm","Do you want to back?","OK","Cancel") == 1)
    {
		window.close();
	}
}
function Clear()
{
	/*frm.caseType.children[0].selected= true;
	frm.fromUserType.children[0].selected = true;
	frm.toUserType.children[0].selected = true;
	frm.unattendedHours.children[0].selected = true;
	frm.unattendedMinutes.children[0].selected = true;
	frm.autoEHours.children[0].selected = true;
	frm.autoEMinutes.children[0].selected = true;
	frm.routeRadio[0].checked = true;
	frm.defaultRadio[1].checked = true;
	frm.toUserType.disabled = true;*/
	if (showOConfirmDialog("Confirm","Do you want to reset?","OK","Cancel") == 1)
	{
		frm.reset();
	}
}
function setDef()
{
	var defRoute = <%=def%> ;
	if(!defRoute){
		if(!document.all.defaultRadio[0].checked)
		{	
			document.all.defaultRadio[0].disabled = true;
			document.all.defaultRadio[1].disabled = true;
		}
	}

}
function noInteger()
{
	var u = event.srcElement.value ;
	u = u.substring(0,1);
	if(u == '-')
		event.srcElement.value = "";
		//showOWarningDialog("warning", "Data in field is not integer", "OK");
}
</SCRIPT>
<BODY onload="setDef();">

<DIV style="width:100%;height:90%;margin:5px" class="modalBg">
<FORM name="frm" action="<%=update%>" method="post" onsubmit="submitForm();return false;">
	<INPUT type="hidden" name="action" value="<%=action%>">
	<INPUT type="hidden" name="uid" value="<%=uid%>">
	<INPUT type="hidden" name="hCaseType" value="<%=data.getComp_id().getCaseType()%>">
	<INPUT type="hidden" name="hFromUser" value="<%=data.getComp_id().getFromUserLevel()%>">
	<INPUT type="hidden" name="hToUser" value="<%=data.getComp_id().getToUserLevel()%>">
	<TABLE>
	<TBODY>
	<TR>
    	<TD colspan="2">
    		<IMG alt="Save" src="../images/icon/toolbar/nSave.gif" onmouseover="this.src='../images/icon/toolbar/oSave.gif'" onmouseout="this.src='../images/icon/toolbar/nSave.gif'" style="cursor:hand" onclick="submitForm();">
            <IMG alt="Clear" src="../images/icon/toolbar/nClear.gif" onmouseover="this.src='../images/icon/toolbar/oClear.gif'" onmouseout="this.src='../images/icon/toolbar/nClear.gif'" style="cursor:hand" onclick="Clear();">
            <IMG alt="Back" src="../images/icon/toolbar/nExit.gif" onmouseover="this.src='../images/icon/toolbar/oExit.gif'" onmouseout="this.src='../images/icon/toolbar/nExit.gif'" style="cursor:hand" onclick="Exit();">
        </TD>
		<TD align="right"><FONT class="titleFont" color="red">*required field</FONT></TD>
	</TR>
	<TR>
	 	<TD width="40%" align="right" valign="top" class="titleFont">Case Type : </TD>
        <TD width="5"></TD>
        <TD class="dataDetailPK"><textfield:textfield  name="caseType" width="<%=textfieldWidth%>" readonly="yes" value="<%=CfhdCaseHead.getStatusDesc(data.getComp_id().getCaseType())%>"></textfield:textfield></TD>
    </TR>
	<TR>
	 	<TD width="40%" align="right" valign="top" class="titleFont">From User Level : </TD>
        <TD width="5"></TD>
        <TD class="dataDetailPK"><textfield:textfield  name="fromUserLevel" width="<%=textfieldWidth%>" readonly="yes" value="<%=UserLevel.getLevelName(data.getComp_id().getFromUserLevel()) %>"></textfield:textfield></TD>
    </TR>
	<TR>
	 	<TD width="40%" align="right" valign="top" class="titleFont">To User Level : </TD>
        <TD width="5"></TD>
        <TD class="dataDetailPK"><textfield:textfield  name="toUserLevel" readonly="yes" value="<%=UserLevel.getLevelName(data.getComp_id().getToUserLevel()) %>" width="<%=textfieldWidth%>" ></textfield:textfield></TD>
    </TR>
	<TR>
		<TD align="right" valign="top" class="titleFont">Unattended Period :</TD>
		<TD width="5"></TD>
		<TD class="dataDetailPK"><textfield:textfield onkeyup="noInteger();" dataType="integer" maxLength="7" name="unattendedHours" width="132" value="<%=unattHours%>"></textfield:textfield>
			<listbox:listbox name="unattendedMinutes" data="<%=listboxMinutes_Data%>" label="<%=listboxMinutes_Label%>" selectedIndex="<%=indexUnattMinutes%>" width="132" ></listbox:listbox></TD>
	</TR>
	<TR>
		<TD align="right" valign="top" class="titleFont">Auto Escalate Period :</TD>
		<TD width="5"></TD>
		<TD class="dataDetailPK"><textfield:textfield onkeyup="noInteger();" dataType="integer" maxLength="7" name="autoEHours" width="132" value="<%=autoEsHours%>"></textfield:textfield>
			<listbox:listbox name="autoEMinutes" data="<%=listboxMinutes_Data%>" label="<%=listboxMinutes_Label%>" selectedIndex="<%=indexEsMinutes%>" width="132" ></listbox:listbox></TD>
	</TR>
	<TR>
		<TD align="right" valign="top" class="titleFont">Route Direction :</TD>
		<TD width="5"></TD>
		<TD class="titleFontleft"><INPUT type="radio" name="routeRadio" value="E" id="routeRadio" <%=chkEscalate%>>Escalate
			 <INPUT type="radio" name="routeRadio" id="routeRadio" value="R" <%=chkReturn%>>Return</TD>
	</TR>
	<TR>
		<TD align="right" valign="top" class="titleFont">Default Route for Auto Escalate :</TD>
		<TD width="5"></TD>
		<TD class="titleFontleft"><INPUT type="radio" name="defaultRadio" id="routeRadio" value="Y" <%=chkYes%>>Yes
			 <INPUT type="radio" name="defaultRadio" id="defaultRadio" value="N" <%=chkNo%>>No</TD>
	</TR>
	<TR>
	 	<TD width="40%" align="right" valign="top" class="titleFont">Updated By : </TD>
        <TD width="5"></TD>
        <TD class="dataDetailPK"><textfield:textfield  name="defRoute" width="<%=textfieldWidth%>" readonly="yes" value="<%=updateBy%>"></textfield:textfield></TD>
    </TR>
    <TR>
	 	<TD width="40%" align="right" valign="top" class="titleFont">Updated Date : </TD>
        <TD width="5"></TD>
        <TD class="dataDetailPK"><textfield:textfield align="center" name="active" width="<%=textfieldWidth%>" readonly="yes" value="<%=updateDate%>"></textfield:textfield></TD>
    </TR>
	</TBODY>
	</TABLE>
</FORM>
</DIV>
<% } %>
</BODY>
</HTML>
